package com.xqboss.apps.mapper.consumer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.consumer.ConsumerTeamGiveRecord;
import com.xqboss.apps.dto.consumer.ConsumerGiftQueryDto;
import com.xqboss.apps.vo.consumer.ConsumerGiftRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 队伍转增（藏品/宝盒/装备）记录(ConsumerTeamGiveRecord)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-15 14:27:08
 */
public interface ConsumerTeamGiveRecordMapper extends BaseMapper<ConsumerTeamGiveRecord> {

    /**
     * 礼物列表
     * @param param
     * @return
     */
    List<ConsumerGiftRecordVo> giftList(ConsumerGiftQueryDto param);

    /**
     * 获取用户转赠藏品数量
     * @param userId
     * @param nftId
     * @param type
     * @return
     */
    int countByTransfer(@Param("userId") Long userId, @Param("nftId") Long nftId, @Param("type") Integer type);
}

